package com.du.design.status;

public enum ExamState {
    PASS {
        @Override
        public ExamInfo next(NodeChain cur) {
            if (cur == null) throw new NullPointerException("current node could't be null!");
//            ExamInfo info = new ExamInfo();
//            // 起始
//            if (cur.getStart()) {
//                info.setNextNode(cur.getNext());
//                info.setExamState();
//            }
//
//            // 审核阶段
//
//            // 结束
//
//            ExamInfo.builder()
//                    .nextNode()
            return null;
        }
    },
    REJECT {
        @Override
        public ExamInfo next(NodeChain cur) {
            return null;
        }
    };

    public abstract ExamInfo next(NodeChain cur);
}
